home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
101-125
/
scopedisk106
/
bbs-index
/
scripts
/
move.scr
< prev
next >
Wrap
Text File
|
1995-03-19
|
1KB
|
47 lines
#
# Simple script to generate and execute an AmigaDOS batch file to move
# all the files in a particular section into # a new common directory.
#
#
# Set the output file, destination directory and section no's appropriately.
#
OutFile = "Move.exec"
Dest = "DH1:Somedirectory"
Section = 3
#
# Use the following MV definition if you have a MV that supports moves
# across disk boundaries (such as Edwin Hoogerbeets' excellent one).
#
MV = "mv %f $(Dest)"
#
# Use the following MV definition if you want to use plain AmigaDOS
#
# MV = "copy %f $(Dest)\ndelete $f"
#
# Now generate the list of files. We sort by directory name to try
# and localise disk access
#
format "$(MV)"
NoRequest
CheckFiles
Select Online and Section = $(Section)
Sort Diskname
echo ";"
echo "; BBSindex generated AmigaDOS batch file to move files in"
echo "; section $(Section) to directory $(Dest)."
echo ";"
echo "; Created on %d %w %r"
echo ";"
list
echo ";"
echo 'Echo "Total of %n files moved successfully"'
echo ";"